<extend name="Public/base" />
<block name="title1">支付页面</block>
<block name="css"></block>
<block name="main1">


<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>支付页面</title>
	<style>
		*{margin:0 auto;padding:0 auto;}
		a{cursor:pointer;}
		.title{width:100%;border:0px solid #DDDDDD;height:85px;}
		.title .logo{margin-left: 100px;}
		.title .status2{margin-left: 480px;}
		.tspan{margin-left: 100px;width:100%;}
		.taddr{width:1150px;margin:0 auto;border:0px solid #DDDDDD;}
		.tig{width:100%;background-color:#F7F7F7;height:100px;border:0px solid black;}
		.tig span{display:block;height:30px;margin-left:15px;line-height:40px;}
		.s1{color:blue;}
		.s4{color:red;font-size:20px}
		.s6{color:red;font-size:20px}
		.s5{width:100%;background-color:black;height:2px;}
		.tpay{border:2px solid #DDDDDD;margin-top:25px;height:50px;line-height:50px;}
		.payk{width:120px;display:block;margin-top:10px;}
		.payk input[type=button]{width:150px;border-radius:4px;height:40px;border:1px;background-color:#E03235;color:white;}
	</style>
</head>
<body>
	<div class="title">
		<a href="<{:U('Home/Index/index')}>"><img src="__PUBLIC__/Photo/Home/Cart/logo.png" alt="logo" title='logo' class="logo"></a>
		<img src="__PUBLIC__/Photo/Home/Cart/cartstatus3.png" alt="status" title='status' class="status2">
	</div>
	<br>
	<span class="tspan">&nbsp;&nbsp;|&nbsp;成功提交订单</span>
	<div class="taddr">
		<div class="tig">
			<span class="s2">提交订单成功,请您尽快付款!&nbsp;&nbsp;<font class="s1">订单号为 :<{$list.ordnum}></font></span>
			<span class="s3">应支付总金额:&nbsp;&nbsp;<font class="s4">&yen;<{$list.total}></font></span>
			<span class="s1">请使用以下方式尽快完成付款</span>	
			<hr class="s5">
		</div>
		<div class="tpay">
			<ul style="list-style-type:none" >
				<li><input type="checkbox" name='ckb' class="ckb" value=''>账户余额:<font class='s6'><{$Think.session.userInfo.money}></font>元</li>
			</ul>
		</div>		
		<span class='payk'><input type="button" data-oid="<{$list.oid}>" value="立即支付" class="btn"></span>
	</div>
<script>
$('.btn').click(function(){
	var oid=parseInt($(this).attr('data-oid')); 
	console.log(oid);
	if($('.ckb').is(':checked')){
		$.post("<{:U('Home/Cart/account')}>",{oid:oid},function(data){

			if(data.status){
				location.href="<{:U('Home/Order/index')}>";
			}else{
				alert(data.msg);
			}			
		});		
	}else{
		alert('请选择支付方式')
	}

})
</script>	
</body>
</html>
</block>